#ifndef CLIENT_SHM_POOL_BUFFER_H
#define CLIENT_SHM_POOL_BUFFER_H
//******************************************************************************
//*this code is protected by the GNU affero GPLv3
//*author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//*                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
struct shm_pool_buffer{
  s32 shm_pool_slot;//shm pool this buffer belongs to
  s32 offset;
  s32 w;
  s32 h;
  s32 stride;
  u32 fmt;
};
s8 shm_pool_buffer_new_visible(struct client *c,u32 shm_pool_buffer_id,
                   s32 shm_pool_slot,s32 offset,s32 w,s32 h,s32 stride,u32 fmt);
s8 shm_pool_buffer_destroy(struct client *c,s32 shm_pool_buffer_slot);
#endif
